/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package nominalitzacions.ui;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Scanner;

/**
 *
 * @author daniel.camacho.rodriguez
 */
public class HelpViewController {

    private HelpView HV = null;

    public HelpViewController() throws IOException{
        HV = new HelpView(this);
    }

    public void setVisible() {
        HV.setVisible();
    }

    public void setVisible(String what){
        HV.runWith(what);
    }

    public String getPage() throws FileNotFoundException {
        String pageContent = "";
        File page = new File(System.getProperty("user.home") +
                             System.getProperty("file.separator") +
                             "Manual1.html");
        Scanner sc = new Scanner(page);
        while (sc.hasNext() ) pageContent += sc.next();
        return pageContent;
    }

}
